package byteBuddy;

import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.matcher.ElementMatcher;
import net.bytebuddy.matcher.ElementMatchers;

import java.lang.reflect.Method;

public class MyMethodInterceptor implements MethodInterceptor {
    @Override
    public ElementMatcher<? super MethodDescription> getMatcher() {
        return ElementMatchers.named("name");
    }

    @Override
    public void beforeExecute(Class<?> clazz, Object thisObject, Method method, Object[] allArguments) {
        System.out.println("test123456");
    }
}
